/**
 * @author gaopeng
 * @date 2019/12/19 9:54 下午
 */
public class RunState extends IState {
    @Override
    public void open() {

    }

    @Override
    public void close() {

    }

    @Override
    public void run() {
        System.out.println("正在允许。");
    }

    @Override
    public void stop() {
        super.context.setState(Context.STOP_STATE);
        super.context.getState().stop();
    }
}
